include ../Makefile.inc

	#We use the common implicit rule is for the construction of .o (object) files out of .c (source files).
all:	sparse_mlpl

sparse_mlpl:	sparce_mlpl_main.o 
	cd ../common ; make
	gcc -o sparce_mlpl sparce_mlpl_main.o ../common/modularity_mat.o ../common/sparse_matrix.o

mtrace:  sparce_mlpl_main.o
	@echo "Compiling memory-traced sparse_mlpl"
	cd ../common ; make mtrace
	gcc $(MTRACEFLAGS) -o sparce_mlpl sparce_mlpl_main.o ../common/modularity_mat.o ../common/sparse_matrix.o	

clean:
	rm *.o ../common/*.o modularity_mat
